{template game_header}

<style type="text/css">
td{text-align:center;}
</style>

<h4 style="padding-left:10px;;">
    <span>游戏用户中奖信息</span>
</h4>
<form class="form-horizontal" method="post" action="?c=adminGame&a=userWin">
    <div class="control-group search-group" style="margin:0;">
        <label class="control-label" >用户ID：</label>
        <div class="controls">
          <input type="text" placeholder="用户ID" name="uid" value="{$search['uid']}">
        </div>
    </div>
    <div class="control-group search-group" style="margin:0;">
        <div class="controls">
            <input type="hidden" value="search" name="s">
            <button class="btn" type="submit">搜索</button>
        </div>
    </div>
</form>

<div class="bs-docs-example table-align pt-15" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>用户ID</th>
                <th>姓名</th>
                <th>手机号码</th>
                <th>省市</th>
                <th>地址</th>
                <th>所中奖品</th>
                <th>中奖时间</th>
                <th>是否发货</th>
                <th>中奖渠道</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {if !$list}  
                <tr>
                    <td colspan="9">暂无记录</td>              
                </tr>
            {else}

            {loop $list $k $v}
            <tr>
                <td>{$v['uid']}</td>
                <td>{$v['receiver']}</td>
                <td>{$v['phone']}</td>
                <td>{$v['pCity']}</td>
                <td>{$v['address']}</td>
                <td>{$v['name']}</td>
                <td>{$v['addtime']}</td>
                <td>{$v['delivery']}</td>
                <td>{$v['channelName']}</td>
                <td>
                    <a class="btn btn-edit" href="?c=adminGame&a=updateGiftStatus&id=$v['id']&is_delivery=$v['is_delivery']">修改</a>
                </td>
            </tr>
            {/loop}

            {/if}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}
